package com.hskn.hss.module.violationCfg.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.core.annotation.DataScope;
import com.hskn.hss.core.domain.BaseEntity;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.exception.ExcelReaderDataException;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.violationCfg.entity.TlViolationCfg;
import com.hskn.hss.module.violationCfg.to.ViolationCfgListTO;
import com.hskn.hss.to.ForIdsTO;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-05-06
 */
public interface ITlViolationCfgService extends IService<TlViolationCfg> {
    AjaxResult insert(JSONObject params);

    AjaxResult update(JSONObject params);

    AjaxResult deleteByid(ForIdsTO forIdsTO);

    TlViolationCfg getitemByid(String id) throws HssException;

    JSONObject getList(BaseEntity entity, JSONObject params) throws HssException;

    void excelReader(List<TlViolationCfg> violationCfgList) throws ExcelReaderDataException;

    @DataScope(deptAlias = "deptidforcar", userAlias = "creatBy")
    List<TlViolationCfg> getTlViolationCfgList(ViolationCfgListTO violationCfgListTo, SimpleDateFormat format) throws ParseException;
}
